<html>
<head>
    <title>优惠卷核销</title>
    {php echo register_jssdk();}
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="Pragma" content="no-cache">   
    <meta http-equiv="Cache-Control" content="no-store">
    <meta http-equiv="Expires" content="0">
    <link rel="stylesheet" href="{S_URL}css/style_366c9ef.css?v=2">
    <link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.4.0/css/font-awesome.min.css" >
    <script src="{S_URL}js/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="{S_URL}alert/css/alert2.css" />
    <link href="{WELIAM_INDIANA_STATIC}css/common.css" rel="stylesheet">
    <link href="{WELIAM_INDIANA_STATIC}/css/comm.css" rel="stylesheet" type="text/css">
    <link href="{WELIAM_INDIANA_STATIC}/css/member.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="{S_URL}alert/js/alert.js"></script>
	<style type="text/css">
	#moreBtn{position: fixed; top: 0; right: 5px; z-index: 2; padding: 0 10px; line-height: 36px;}
        .lockDiv 
		{ 
			width:100%; 
			height:100%; 
			background-color:#000000; 
			position:fixed; 
			top:0px; 
			left:0px; 
			opacity:0.2; 
		} 

    <style>
	.address_name_order{position:absolute;right:15%;top:36%;border:solid 1px red;border-radius:3px;color:red;padding:0 3px}
	.addorder_topbar {background:#5f6e8b; padding:15px;}
    .addorder_topbar .ico {height:34px; width:30px; line-height:34px; float:left; font-size:26px; text-align:center; color:#fff;margin-top: 4px;margin-right: 7px;}
    .address_defalut .ico {height:34px; width:30px; line-height:34px; float:left; font-size:26px; text-align:center; color:#666;margin-top: 4px;margin-right: 7px;}
    .addorder_topbar .tipss {height:34px;  margin-left:10px; font-size:13px; color:#fff; line-height:17px;}
    .good_speci {height:44px; width:100%; overflow: hidden; background:#fff; padding:0px 3%; border-bottom:1px solid #e2e2e2; border-top:1px solid #e2e2e2; line-height:44px; color:#666; font-size:14px;}
		.store {height:75px;  background:#fff; padding:5px; border-bottom:1px solid #eaeaea;}
		.store .info .ico { float:left;  height:50px; width:30px; line-height:30px; font-size:16px; text-align:center; color:#666}
		.store .info .ico .fa { margin-top: 3px;}
		.store .info .info1 {height:54px; width:100%; float:left;margin-left:-30px;margin-right:-60px;}
		.store .info .info1 .inner { margin-left:30px;margin-right:60px;overflow:hidden;}
		.store .info .info1 .inner .user {height:25px; width:100%; font-size:14px; color:#333; line-height:25px;overflow:hidden;}
		.store .info .info1 .inner .tel {height:20px; width:100%; font-size:13px; color:#999; line-height:20px;overflow:hidden;}
		.store .info .info1 .inner .addresss {height:20px; width:100%; font-size:13px; color:#999; line-height:20px;overflow:hidden;}
		.store .info .ico2 {height:50px; width:30px;padding-top:15px; float:right; font-size:24px; text-align:center; color:#ccc;}
		.store .info .ico3 {height:50px; width:30px;padding-top:15px; float:right; font-size:24px; text-align:center; color:#ccc;} 
		.store_more {height:20px;  background:#fff; font-size:14px; color:#999; line-height:20px; padding:5px; border-bottom:1px solid #eaeaea; text-align: center;}

</style>
</head>
{if $is_hexiao_member}
<body ms-controller="order">
	{if $hexiao}
	<script>
		alert("核销成功");
			wx.ready(function () {
			wx.scanQRCode();
		});
	</script>
	{else}
	{if $op==''}
	<body style="zoom: 1; padding-top: 39px;">
	<div class="m-simpleHeader" id="dvHeader">
			<h1>核销优惠卷</h1>
	</div>
	<div class="shareCon">
            <dl>
		        <dt>				
                	<p>★优惠券金额:<span ><font color="red">{$couponmess['discount']}元</font></span></p>
					<p>★订单<font color="red">满{$couponmess['condition']}元</font>可使用</p>
					<p>★有效期至<font color="red">{php echo date('Y',$record['endtime'])}年{php echo date('m',$record['endtime'])}月{php echo date('d',$record['endtime'])}日</font></p>
                </dt>
              </dl>
              
              <dd ><a href="{php echo $this->createMobileUrl("check",array(recid=>$recid,op=>1))}" class="orangeBtn" style="background: #db3652;">通过核销</a></dd>
    </div>
	</body>
	{else}
	<script>
		alert("该优惠卷已使用，不能再次使用。");
			wx.ready(function () {
			wx.scanQRCode();
		});
	</script>
	{/if}
	{/if}
</body>
{else}
<body>
	<div style="width: auto;height: auto;text-align: center;">非核销人员</div>
</body>
{/if}
</html>
